<template>
  <div>
    我是孙子组件 --- {{ count }}
  </div>
</template>

<script>
export default {
    name: "son-component",
    data() {
        return {
            count: null
        }
    },
    mounted() {
        // this.$bus.$on("abc", (data) => {
        //     this.count = data
        // })


        this.$bus.$on("aaaaa", (data) => {
            this.count = data
        })
    },
    beforeDestroy() {
        this.$bus.$off("aaaaa")
    }
}
</script>

<style>

</style>